package lab01;

/**
 * Created by 阿阿阿阿豪丶 on 2017/10/8.
 */
public class Test10 {
    public static void main(String[] args) {
        int i, j, k, A;
        char ch;
        A = '@';
        for (i = 1; i <= 4; i++) {
            for (j = 1; j <= 4 - i; j++)
                System.out.print(" ");
            for (k = 1; k <= i; k++) {
                A = A + 1;
                ch = (char) A;
                System.out.print(ch + " ");
            }
            System.out.println("");
        }
        for (i = 1; i <= 4; i++) {
            for (j = 1; j <= i - 1; j++)
                System.out.print(" ");
            for (k = 1; k <= 5 - i; k++) {
                A = A + 1;
                ch = (char) A;
                System.out.print(ch + " ");
            }
            System.out.println("");
        }
    }
}
